<template>
  <div>
    <form action="/">
      <van-search
        v-model="value"
        show-action
        placeholder="请输入搜索关键词"
        @cancel="onCancel"
      />
    </form>
  </div>
</template>

<script>
export default {
  name: "Search01",
  data() {
    return {
      value: "",
    };
  },
  components: {},
  methods: {
    onCancel() {
      this.$router.back();
    },
  },
};
</script>

<style scoped></style>
